package com.yyc.system.service.impl;

import com.yyc.system.dao.TUserBookMapper;
import com.yyc.system.model.TUserBook;
import com.yyc.system.service.ITUserBookService;
import com.yyc.core.AbstractService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;


/**
 * Created by yyc on 2018/12/26.
 */
@Service
@Transactional( isolation = Isolation.DEFAULT, propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class TUserBookServiceImpl extends AbstractService<TUserBook> implements ITUserBookService {
    @Autowired
    private TUserBookMapper tUserBookMapper;

	@Override
	public List<TUserBook> findUserReadBook(Integer userId) {
		return tUserBookMapper.getUserReadBook(userId);
	}

}
